<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" alt="" />
    <div class="text-center">
      <h1 class="text-base text-gray-500">抱歉，你访问的页面不存在</h1>
      <el-button @click="goHome" size="large" link>回到首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
let $router = useRouter()
const goHome = () => {
  $router.push('/home')
}
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  //   background: yellowgreen;
  display: flex;
  justify-content: center;
  img {
    width: 800px;
    height: 400px;
  }
  .text-center {
    h1 {
      font-size: 40px;
      color: #666;
      padding: 20px 0;
    }
  }
}
</style>
